Hi Everyone,
I wrote the attached utility to convert vector-type (not bitmapped)
postscript/pdf files into POVRay prisms. It works under Linux.
The first step is to "flatten" the postscript to a standard form
using the pstoedit package (available separately). Then you run my
perl script to convert the "flattened" postscript into Prism statements.
A demonstration is included to show each step. It converts some
postscript demo files and a latex document into prisms and renders
them. The demo image is attached.
There are two options for textures -- either the original postscript
colors can be applied, or the prisms can be left untextured so that
a uniform texture can be applied later.
Since most two-dimensional things can be converted to postscript
by printing to a file, this utility should make it possible to convert
most 2-dimensional objects into POVRay prisms.
This package works for the few examples I tried. It may still need
improvement to deal with more complicated files.
I hope you find it useful!
Ross
Post a reply to this message
Attachments:
Download 'eps2pov.tgz.gz' (126 KB)
Download 'main.jpg' (27 KB)
Preview of image 'main.jpg'
|